<?php
class Partner extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		
		
		$this->layout->setLayout('admin');
		$auth = $this->session->userdata('auth');
		if(!$auth)
		{
			redirect('/auth/login');
		}
	}
	function index()
	{
		$id=1;
		$data['value']=$this->partner_model->getPartner($id);
		$this->layout->view('partner',$data);
	}
	function update()
	{
		$form=$this->input->post();
		$data	=	array(	'id'=>$form['hidID'],
							'content'=>$form['content']
							);
		$this->partner_model->update($data);
		redirect('partner');
	}
}